#coding:utf-8
#!/usr/bin/python

import math

def myMath(a, b, c):
	deta = b**2-4*a*c

	if deta<0:
		print '此方程无解！'
	else:
		x1 = (-b+math.sqrt(deta))/2*a
		x2 = (-b-math.sqrt(deta))/2*a

		print '方程的根是：\nx1 = %f\nx2 = %f'%(x1, x2)

if __name__ == '__main__':
	print 'input a,b,c:'
	print 
	stra = raw_input('a:')
	strb = raw_input('b:')
	strc = raw_input('c:')
	
	a, b, c = int(stra), int(strb), int(strc)
	myMath(a,b,c)
